home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 58
/
MINAMI58.ISO
/
Varios
/
Juegos Flash
/
Gold Yard.exe
/
scripts
/
DefineButton2_305
/
BUTTONCONDACTION on(keyPress Space).as
Wrap
Text File
|
2003-04-29
|
822b
|
28 lines
on(keyPress "<Space>"){
if(25 < activeslot)
{
call("clearslot");
_root.library.heal(healing_potion);
}
else if(0 < activeslot and activeslot < 26)
{
celltype = cellcontent.substr(1,1);
targetid = int(cellcontent.substr(3,2));
if(celltype == 5 and activeslot == targetid and eval("targetstatus" add targetid) == 1)
{
set("targetstatus" add targetid,0);
call("clearslot");
tellTarget("/target" add targetid)
{
gotoAndStop("on");
play();
}
}
else if(celltype == 5 and activeslot != targetid and eval("targetstatus" add targetid) == 1)
{
_root.errorfx.gotoAndPlay("on");
_root.infomessage("That doesn\'t seem to work here...");
}
}
}